package com.nicy.dream.service.imp;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.nicy.dream.service.SayHelloService;
import org.springframework.stereotype.Service;

/**
 * @description: sayHello实现类
 * @projectName:dream
 * @see:com.nicy.dream.service.imp
 * @author:NicyYe
 * @createTime:2021/3/22 9:24
 * @version:1.0
 */
@Service
public class SayHelloServiceImpl implements SayHelloService {
    @Override
    @SentinelResource(value = "sayHello2")
    public String sayHello2(String name) {
        return "Hello,"+name;
    }
}
